package cn.usian.jyzx.product.controller;

import cn.usian.jyzx.model.vo.common.Result;
import cn.usian.jyzx.model.vo.common.ResultCodeEnum;
import cn.usian.jyzx.product.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @TODO:
 * @Author:baimu
 * @Date:2024 11 01 10 49
 **/

@RestController

public class BrandController {

    @Autowired
    BrandService bandService;


    @GetMapping("/api/product/brand/findAll")
    public Result findAll(){
        return Result.build(bandService.findAll(), ResultCodeEnum.SUCCESS);
    }
}
